#ifndef MENUELEMENT_HPP
#define MENUELEMENT_HPP
//
#include <gui_generated/containers/MenuElementBase.hpp>
#include <BitmapDatabase.hpp>
#include <math.h>
//
class MenuElement : public MenuElementBase
{
public:
    MenuElement();
    virtual ~MenuElement() {}
		//
    virtual void initialize();
		int8_t number;			
		void offset(int16_t x);
		virtual void setY(int16_t y);
		void setNumber(int no);	
protected:
		//声明点击事件回调函数
		Callback<MenuElement, const touchgfx::ScalableImage & , const touchgfx::ClickEvent &> imageClickHandler;
		//声明点击事件处理函数
    void image_click_handler(const touchgfx::ScalableImage &image , const touchgfx::ClickEvent &event);
};

#endif // MENUELEMENT_HPP
